#ifndef HYPERBOLOID_H
#define HYPERBOLOID_H

#include <QList>
#include "point.h"
#include <QtOpenGL>
#include "mymath.h"

class Hyperboloid
{
    public:
        Hyperboloid();
        Hyperboloid(float angle, int nbPoints);

        void calculerPositionPointsSuperieurs();
        void dessiner();


        void setAngle(float angle);
        float getAngle();

    private:
        void initialiser();


    private:
        float angle;
        int nbPoints;
        Point *centreHaut;
        Point *centreBas;
        QList<Point*> sommetsSuperieurs;
        QList<Point*> sommetsInferieurs;
        QList <QList<Point*> > facesCotes;
        QList< QList<Point*> > facesDessus;
        QList< QList<Point*> > facesDessous;
};

#endif // HYPERBOLOID_H
